class PraiseButton {
  constructor(num, element) {
    this.num = num;
    this.el = element;
  }
  addPraise() {
    this.el.click(() => {
      this.num  = add(this.num);
      this.el.addClass('active');
      setTimeout(() => {
        this.el.removeClass('active');
      }, 300);
      $('.num span').text(this.num);
    })

  }
}

export default PraiseButton;
